package com.bonc.excel.service.impl;


import com.bonc.excel.entity.User;
import com.bonc.excel.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 用户业务层接口实现类
 * @Date: Created in 23:01 2022/5/26
 * STAR

 */
@Service
public class UserServiceImpl implements UserService {
    private static final Logger log = LoggerFactory.getLogger(UserServiceImpl.class);

  /*  @Autowired
    private UserDao userDao;*/

    /**
     * @Description:
     * @Auther: ONESTAR
     * @Date: 21:25 2022/5/27
     * @Param: username:用户名；password:密码
     * @Return: 返回用户对象
     */
    @Override
    public User checkUser(String username, String password) {
        User user = new User();
        user.setNickname("star");
        user.setUsername("star");
        user.setAvatar("star");
        //User // = userDao.findByUsernameAndPassword(username, MD5Utils.code(password));
        return user;
    }
}